﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
#sh{
	border:groove #0FF 2px;
	color:#000;
	font-size:36px;
	text-align:center;
	}	
</style>		
<script language="javascript">
function time(){
var now=new Date();
var year=now.getFullYear();
var month=now.getMonth()+1;
var date=now.getDate();
var day=now.getDay();
var hour=now.getHours();
var mins=now.getMinutes();
var sec=now.getSeconds();
var a;
var week="";                               
  if (day==0) week='星期日';
  if (day==1) week='星期一';
  if (day==2) week='星期二';
  if (day==3) week='星期三';
  if (day==4) week='星期四';
  if (day==5) week='星期五';
  if (day==6) week='星期六';
if(month<10){
	month="0"+month;
	}
if(date<10){
	date="0"+date;
	}		

a=year+"年"+month+"月"+date+"日"+" "+week;
document.form2.tet2.value=a;
window.setTimeout("time()",1000);
}
</script>	
</head>
<body>
<form name="form2">
<center><input id="sh" type="text" name="tet2" value="" readonly="readonly"  style="border-style:none"  size=50 /></center>
</form>
<script type="text/javascript">
time();
</script>
</body>
</html>
